<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/"; 
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>登录</title>
	</head>
	<script type="text/javascript">
	if (window != top) {
		top.location.href = location.href;
	}
</script>
<style>
#login {
	font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
	width: 50%;
	margin: auto;
	border-collapse: collapse;
}

#login td,#login th {
	font-size: 1em;
	border: 1px solid #98bf21;
	padding: 3px 7px 2px 7px;
}

#login th {
	font-size: 1.1em;
	text-align: left;
	padding-top: 5px;
	padding-bottom: 4px;
	background-color: #A7C942;
	color: #ffffff;
}

#login tr.alt td {
	color: #000000;
	background-color: #EAF2D3;
}
</style>
	<body>
		<form action="<%=path%>/lr/login.xhtm" method="post" >
			<div style="text-align: center;">
				<table id="login">
					<tr>
						<td colspan="3">
							用户登陆:
						</td>
					</tr>
					<tr>
						<td>
							邮箱:
						</td>
						<td>
							<input type="text" name="email" size="25"
								value="<%=request.getParameter("email") == null ? "" : request
					.getParameter("email")%>">
						</td>
						<c:if test="${errors.email!=null}">
							<td>
								${errors.email}
							</td>
						</c:if>

					</tr>

					<tr>
						<td>
							密码:
						</td>
						<td>
							<input type="password" name="password" size="25">
						</td>
						<c:if test="${errors.password!=null}">
							<td>
								${errors.password}
							</td>
						</c:if>

					</tr>
					
					<tr>
						<td>
							<input type="submit" value="提交">
						</td>
						<td>
							<input type="reset" value="重置">
						</td>
					</tr>
				</table>
			</div>
		</form>
	</body>
</html>